package com.xnyzc.lhy.resource.service.cp;

import com.xnyzc.lhy.resource.common.cp.dto.SingleTradeResult;
import com.xnyzc.lhy.resource.common.cp.dto.SingleQueryParam;
import com.xnyzc.lhy.resource.common.cp.dto.TransactionInfo;
import com.xnyzc.lhy.resource.common.cp.exception.CPException;
import org.springframework.stereotype.Service;

public interface ITradeService {

    /**
     * 单笔代付
     * @param transactionInfo 交易信息
     * @throws CPException 银联代付对接异常
     */
    public SingleTradeResult singleTrade(TransactionInfo transactionInfo) throws CPException;

    /**
     * 单笔代付查询
     * @param singleQueryParam 查询参数
     * @return
     * @throws CPException 银联代付对接异常
     */
    public SingleTradeResult singleQuery(SingleQueryParam singleQueryParam) throws CPException;
}
